/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.agenda.model.entity;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.validation.constraints.NotNull;

/**
 *
 * @author Ronildo
 */
@Embeddable
public class AmTbTeleLocaAtenPK implements Serializable {
    @Basic(optional = false)
    @NotNull
    @Column(name = "CD_LOCA_ATEN_MEDI")
    private int cdLocaAtenMedi;
    @Basic(optional = false)
    @NotNull
    @Column(name = "NR_SEQU_TELE")
    private short nrSequTele;

    public AmTbTeleLocaAtenPK() {
    }

    public AmTbTeleLocaAtenPK(int cdLocaAtenMedi, short nrSequTele) {
        this.cdLocaAtenMedi = cdLocaAtenMedi;
        this.nrSequTele = nrSequTele;
    }

    public int getCdLocaAtenMedi() {
        return cdLocaAtenMedi;
    }

    public void setCdLocaAtenMedi(int cdLocaAtenMedi) {
        this.cdLocaAtenMedi = cdLocaAtenMedi;
    }

    public short getNrSequTele() {
        return nrSequTele;
    }

    public void setNrSequTele(short nrSequTele) {
        this.nrSequTele = nrSequTele;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) cdLocaAtenMedi;
        hash += (int) nrSequTele;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof AmTbTeleLocaAtenPK)) {
            return false;
        }
        AmTbTeleLocaAtenPK other = (AmTbTeleLocaAtenPK) object;
        if (this.cdLocaAtenMedi != other.cdLocaAtenMedi) {
            return false;
        }
        if (this.nrSequTele != other.nrSequTele) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.agenda.model.entity.AmTbTeleLocaAtenPK[ cdLocaAtenMedi=" + cdLocaAtenMedi + ", nrSequTele=" + nrSequTele + " ]";
    }
    
}
